<?php if (!defined('THINK_PATH')) exit();?><!doctype html>
<html>
<head>
<meta charset="utf-8">
<title><?php echo (C("WEBNAME")); ?>--<?php echo ($cateName); ?></title>
<meta name="keywords" content="个人博客,闫海个人博客,闫海" />
<meta name="description" content="闫海的个人博客，是一个会点三脚猫功夫的伪php程序员。" />
<link href="/Public/Index/css/base.css" rel="stylesheet">
<link href="/Public/Index/css/style.css" rel="stylesheet">
<link rel="stylesheet" href="/Public/Index/css/animate.css">
<script src="http://siteapp.baidu.com/static/webappservice/uaredirect.js" type="text/javascript"></script><script type="text/javascript">uaredirect("http://yanhai0531.com/mobile.php");</script>
<!--[if lt IE 9]>
<script src="/Public/Index/js/modernizr.js"></script>
<![endif]-->
<script type="text/javascript">
var _bdhmProtocol = (("https:" == document.location.protocol) ? " https://" : " http://");
document.write(unescape("%3Cscript src='" + _bdhmProtocol + "hm.baidu.com/h.js%3F5a97c6527b57694be765111b6a23bffc' type='text/javascript'%3E%3C/script%3E"));
</script>
</head>
<body>
<script src="/Public/Index/js/jquery.js"></script>
<div class='header animated bounceInDown'>
    <div class='wrap'>
      <div class='logo'><a data-scroll-reveal='enter from the top over 0.7s' href='<?php echo U("/");?>'>
         <img src='/Public/Index/images/logo.png' title='闫海的个人博客首页' alt="logo" /></a>
      </div>
      <div data-scroll-reveal='enter from the top over 0.7s' class='top-nav'>
          <ul id="topnav">
            <li><a href='<?php echo U("/");?>'  title='首页'>首页<span></span></a></li>
            <?php $_cate = M('category')->order('sort')->where(array('pid'=>0))->select(); foreach($_cate as $_cate_v): extract($_cate_v); $url = U('Index/list/'.$id); ?><li><a href='<?php echo ($url); ?>' title='<?php echo ($name); ?>'><?php echo ($name); ?><span> </span></a></li><?php endforeach; ?>
            <li><a href='<?php echo U("Index/Article/message");?>'  title='给我留言'>给我留言<span></span></a></li>
          </ul>
      </div>
      <div class='clear'></div>
    </div>
</div>
<article class="blogs">
  <h1 class="t_nav"><span><?php echo ($pwrs); ?></span><a href="<?php echo U('/index');?>" class="n1">网站首页</a><a class="n2"><?php echo ($cateName); ?></a></h1>
<div class="newblog left">
  <?php if(is_array($list)): foreach($list as $key=>$v): ?><h2 <?php if($v["color"]): ?>style="color:<?php echo ($v["color"]); ?>"<?php endif; ?>><?php if($v['a_name']): ?>[<?php echo (substr($v["a_name"],0,90)); ?>]<?php endif; echo ($v["title"]); ?></h2>
   <p class="dateview"><span>发布时间：<?php echo (date('Y-m-d', $v["time"])); ?></span><span>作者：<?php echo ($v["author"]); ?></span><span>分类：[<a href="<?php echo U('Index/list/'.$v['cid']);?>"><?php echo ($v["c_name"]); ?></a>]</span></p>
    <figure><img src="<?php echo ($v["url"]); ?>"></figure>
    <ul class="nlist">
      <p><?php echo ($v["description"]); ?></p>
      <a title="<?php echo ($v["title"]); ?>" href="<?php echo U('Index/article/'.$v['id']);?>" class="readmore">阅读全文>></a>
    </ul>
    <div class="line"></div><?php endforeach; endif; ?>
    
    <div class="blank"></div>
    <div class="ad">  

    </div>
    <div class="page"><?php echo ($page); ?></div>
</div>
<aside class="right">
   <div class="rnav">
      <ul>
      <?php $a=0; ?>
      <?php if(is_array($cateChilds)): foreach($cateChilds as $k=>$v): if($a<4)$a++; else $a=1; ?>
        <li class='rnav<?php echo ($a); ?>'><a href="<?php echo U('Index/list/'.$v['id']);?>" target="_blank"><?php echo ($v["name"]); ?></a></li><?php endforeach; endif; ?>
     </ul>      
    </div>
    <div class="news" style="margin-top:10px;">
    <?php W('Right/hot');?>
    </div>  
    <!-- Baidu Button BEGIN -->
    <div id="bdshare" class="bdshare_t bds_tools_32 get-codes-bdshare"><a class="bds_tsina"></a><a class="bds_qzone"></a><a class="bds_tqq"></a><a class="bds_renren"></a><span class="bds_more"></span><a class="shareCount"></a></div>
    <script type="text/javascript" id="bdshare_js" data="type=tools&amp;uid=6574585" ></script> 
    <script type="text/javascript" id="bdshell_js"></script> 
    <script type="text/javascript">

document.getElementById("bdshell_js").src = "http://bdimg.share.baidu.com/static/js/shell_v2.js?cdnversion=" + Math.ceil(new Date()/3600000)
</script> 
    <!-- Baidu Button END -->   
    <a onclick="javascript:window.open('/Public/Index/images/weixin.jpg','a', 'height=600,width=600,status=no,toolbar=no,menubar=no,location=no,scrollbars=no');" class="weixin"> </a></aside> 
</article>
<footer>
  <p><a href="http://www.miitbeian.gov.cn/" target="_blank"><?php echo (C("COPY")); ?></a> </p>
</footer>
<script src="/Public/Index/js/silder.js"></script>

<script type="text/javascript">
     if(typeof(Worker) === "undefined"){
     	$.get('/Public/Html5/html5.html', function(data){
			$('body').html(data);
		})
     }
</script>

</body>
</html>